﻿using Abp.Application.Services.Dto;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using System.Xml.Linq;

namespace AppFramework.DinosaursParkMes.Dictionaries.Dto
{
    public class AddDictionariesDto
    {
        /// <summary>
        /// 字典名称
        /// </summary>
        [Required,MaxLength(30)]
        public string Dictionariesname { get; set; }

        /// <summary>
        /// 排序值
        /// </summary>
        [Display(Name = "排序id")]
        public int? Sort { get; set; }

        /// <summary>
        /// 备注
        /// </summary
        [Display(Name = "备注")]
        [StringLength(100)]
        public string Remark { get; set; }

        public List<DictionarieslistItemDto> children { get; set; }
    }
    public class DictionarieslistItemDto
    {
        /// <summary>
        /// 存入值
        /// </summary>
        [Required, Display(Name = "存入值")]
        public string Value { get; set; }
        /// <summary>
        /// 显示值
        /// </summary>
        [Required, Display(Name = "显示值")]
        public string Text { get; set; }
        /// <summary>
        /// 排序id
        /// </summary>
        [Display(Name = "排序id")]
        public int? Sort { get; set; }
        public string Remark { get; set; }
    }

    /// <summary>
    /// 修改字典的Dto
    /// </summary>
    public class UpdateDictionaryDto : AddDictionariesDto, IEntityDto
    {
        public int Id { get; set; }
    }
}
